package cn.anjubao.cp.api.mapper;

import cn.anjubao.cp.api.entity.PayRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PayRecordMapper  extends BaseMapper<PayRecord> {
    /**
     * 获取订单支付状态
     * @param parkingRecordId
     * @param payState
     * @return
     */
    PayRecord getByParkingRecordId(@Param("parkingRecordId") String parkingRecordId, @Param("payState")int payState);

    List<PayRecord> getListByParkingRecordId(String parkingRecordId);

    Integer sumOweFee(String userCode);

    PayRecord getPrePayRecord(String parkingRecordId);


}